<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link type="text/css" rel="stylesheet" href="/stylesheets/bootstrap.min.css" />
    <link type="text/css" rel="stylesheet" href="/stylesheets/add.css" />

    <!--引入Jq插件-->
    <script type="text/javascript" src="/javascripts/jquery-1.8.3.min.js"></script>

    <title>编辑用户</title>
</head>

<body>
    <div class="panel panel-default">
        <div class="panel-heading">
            编辑用户
        </div>

        <div class="panel-body">
            <div class="input-form">
                <form action="/users/doEdit" class="form" method="post">
                    <ul>
                        <input type="hidden" name="account" value="<%=userResult.account%>">
                        <li>
                            <h3>用户姓名:</h3> <input type="text" name="userName" value="<%=userResult.user_name%>" />
                        </li>
                        <li>
                            <h3>用户角色:</h3>
                            <div style="margin-left: 130px;">
                                <%for(var i=0;i<roleResult.length;i++) {%>
                                    <div>
                                        <input type="radio" value="<%=roleResult[i].id%>" name="roleId">
                                        <%=roleResult[i].role_name%>
                                            <%}%>
                                    </div>
                            </div>
                        </li>
                        <li>
                            <br />
                            <button type="submit" class="btn btn-primary submit">确认修改</button>
                        </li>
                    </ul>
                </form>
            </div>
        </div>
    </div>
    <script>
    </script>
</body>

</html>